//
// Created by 14590 on 2025/5/14.
//

#include "bsp_rng.h"

uint32_t RandomBuf;

void HAL_RNG_ReadyDataCallback(RNG_HandleTypeDef *hrng, uint32_t random32bit)
{
    if(hrng->Instance == RNG)
    {
        RandomBuf = random32bit;
        HAL_RNG_GenerateRandomNumber_IT(hrng);
    }

}